package com.ghpt.service.impl;
import com.ghpt.mapper.LuShangMapper;
import com.ghpt.pojo.LuShang;
import com.ghpt.service.LuShangService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LuShangServiceImpl implements LuShangService {
    @Autowired
    private LuShangMapper luShangMapper;

    @Override
    public LuShang findLuShangById(Long id) {
        if (id != null) {
            return luShangMapper.selectById(id);
        }else {
            return null;
        }
    }
    @Override
    public int updateById(LuShang luShang) {
        return luShangMapper.updateById(luShang);//更新成功为1否则为0
    }
}
